using System;
using Volo.Abp.Domain.Entities;
using System.ComponentModel.DataAnnotations;

namespace Acme.BookStore.Workzmy
{
    /// <summary>
    /// 调拨明细
    /// </summary>
    public class AllocationDetail : Entity<Guid>
    {
        /// <summary>
        /// 调拨单ID
        /// </summary>
        public Guid AllocationId { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        [Required]
        [StringLength(200)]
        public string ProductName { get; set; }

        /// <summary>
        /// 产品编码
        /// </summary>
        [Required]
        [StringLength(50)]
        public string ProductCode { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        [StringLength(100)]
        public string Specification { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        [Required]
        [StringLength(20)]
        public string Unit { get; set; }

        /// <summary>
        /// 产品类型
        /// </summary>
        [StringLength(50)]
        public string ProductType { get; set; }

        /// <summary>
        /// 调出仓库当前库存
        /// </summary>
        public decimal FromWarehouseStock { get; set; }

        /// <summary>
        /// 调入仓库当前库存
        /// </summary>
        public decimal ToWarehouseStock { get; set; }

        /// <summary>
        /// 调拨数量
        /// </summary>
        [Required]
        public decimal AllocationQuantity { get; set; }

        /// <summary>
        /// 出库单价
        /// </summary>
        public decimal UnitPrice { get; set; }

        /// <summary>
        /// 调拨金额
        /// </summary>
        public decimal AllocationAmount { get; set; }
        /// <summary>
        /// 调拨明细备注
        /// </summary>
        public string Remarks { get; set; }
    }
}